package com.listeningframework.boot.constants;

/**
 * 
 * Character Encoding Enum
 *
 * @author Listening
 * @version $Id: Encoding.java, v 0.1 2016年8月20日 上午12:08:46 Listening Exp $
 */
public enum Encoding {
    /**
     * UTF-8|GBK|GB2312|GB18030
     */
    UTF8("utf-8"), GBK("gbk"), GB2312("gb2312"), GB18030("gb18030");

    private String code;

    private Encoding(String code) {
        this.code = code;
    }

    /**
     * Getter method for property <tt>code</tt>.
     * 
     * @return property value of code
     */
    public String getCode() {
        return code;
    }

    /**
     * Setter method for property <tt>code</tt>.
     * 
     * @param code value to be assigned to property code
     */
    public void setCode(String code) {
        this.code = code;
    }

}